package com.syni.mdd.sjb.community.base.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.syni.mdd.sjb.common.component.mybatis.community.entity.WxCommunityHelp;
import com.syni.mdd.sjb.common.component.mybatis.community.mapper.WxCommunityHelpMapper;
import com.syni.mdd.sjb.common.component.utils.common.utils.ResultMapHelper;
import com.syni.mdd.sjb.community.base.service.WxCommunityHelpService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.time.LocalDateTime;
import java.util.Map;

/**
 * @author wangbaitao
 * @version 1.0.0
 * <h></h>
 * @Date 2021/2/4
 **/
@Service
@Transactional
public class WxCommunityHelpServiceImpl extends ServiceImpl<WxCommunityHelpMapper, WxCommunityHelp>
        implements WxCommunityHelpService {
    /**
     * 创建帮助工单数据
     *
     * @param wxCommunityHelp 工单数据实体
     * @return 操作结果
     */
    @Override
    public Map<String, Object> createCommunityHelp(WxCommunityHelp wxCommunityHelp) {
        wxCommunityHelp.setCreateTime(LocalDateTime.now());
        save(wxCommunityHelp);
        return ResultMapHelper.success(null);
    }
}
